/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package Controller;

import Modele.TableModel;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.IOException;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JTable;

/**
 *this Listener is called when the user clicks on a webpage, it launchs the firefox Browser
 * just implemented it for Mac os systeme
 * @author Bakalian
 */
public class HomePageListener {
    
   
/**
 * 
 * @param str is cotaining the webpage
 */
    public HomePageListener(String str) {
  
       
           Runtime runtime = Runtime.getRuntime();
        try {
            runtime.exec(new String[] { "/Applications/Firefox.app/Contents/MacOS/firefox","-new-tab", str } );
        } catch (IOException ex) {
            Logger.getLogger(HomePageListener.class.getName()).log(Level.SEVERE, null, ex);
        }
		
    }
	
    
}
